/**
 * 折线图和累积图
 */

import React from 'react';
import { findDOMNode } from 'react-dom';
import LineAreaChart from './LineAreaChart';
import merge from 'lodash/object/merge';
import isEqual from 'lodash/lang/isEqual'
import Highcharts from 'Highcharts';

export default class ActivityInviteTeacherLineAreaChart extends LineAreaChart {
	
	/**
	 * @override
	 */
	getSeries(props) {
		let { dataSource } = props;

		return [{
			name: '注册人数',
			type: 'area',
			data: [].concat(dataSource.registeredSeries),
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '被邀请人数',
			type: 'area',
			data: [].concat(dataSource.beInvitedSeries),
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '被邀请核心人数',
			type: 'area',
			data: [].concat(dataSource.beInvitedCoreSeries),
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '核心转化率',
			type: 'line',
			yAxis: 1,
			data: [].concat(dataSource.invitedConversionSeries),
			tooltip: {
				valueSuffix: '%'
			}
		}, {
			name: '被邀请占比',
			type: 'line',
			yAxis: 1,
			data: [].concat(dataSource.accountingSeries),
			tooltip: {
				valueSuffix: '%'
			}
		}];
	}
}